package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.ArticleTitle;
import com.caigou.pojo.ArticleTitleData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

//@Mapper
//@Repository("ArticleTitleMapper")
public interface ArticleTitleMapper {
    int saveArticleTitleData(ArticleTitle record);

    int loadArticleTitleExist(@Param("articleId") String articleId, @Param("titleType") Integer titleType);

    int deleteArticleTitle(@Param("id") Integer id);

    List<ArticleTitleData> loadArticleTitleList(@Param("articleId") String articleId);

    int updateArticleTitleData(ArticleTitle record);


    void updateArticleTitleDataBySelective(ArticleTitle articleTitle);

    ArticleTitle loadArticleTitle(@Param("articleId") String articleId, @Param("titleType") Integer titleType);

    ArticleTitle loadArticleTitleById(@Param("id") Integer id);


    List<ArticleTitleData> findArticleTitleDataByArticleIds(@Param("articleIds")  List<String> articleIds);

    List<ArticleTitle> findArticleTitleByArticleIds( @Param("articleIds")  List<String> articleIds);

    int deleteArticleTitleByArticleId(@Param("articleId") String articleId);

    int loadArticleTitleReleaseStatus(@Param("articleId") String articleId, @Param("articleTitleType") Integer articleTitleType);
}
